package com.highcom;

import com.highcom.domain.Account;
import com.highcom.service.AccountService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.List;

public class Main {
    public static void main(String[] args) {
        ApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext.xml");
        AccountService service = (AccountService) ctx.getBean("accountService");

        service.transfer("jerry","tom",100D);
    }
}